import { RouteRecordRaw } from 'vue-router'
let adminList: Array<RouteRecordRaw> = [
    {
        path: '/note/admin-index',
        name: 'adminIndex',
        redirect: '/note/admin-homePage',
        component: () => import('@/views/admin/admin-index/admin-index.vue'),
        children: [
            {
                path: '/note/admin-homePage',
                name: 'adminHomePage',
                meta: {
                    title: '首页',
                    anth: false
                },
                component: () => import('@/views/admin/admin-home/admin-home.vue'),
            },
            {
                path: '/note/blog-add',
                name: 'BlogAdd',
                meta: {
                    title: '发布文章',
                    anth: false
                },
                component: () => import('@/views/admin/admin-blog/blog-add.vue'),
            },
            {
                path: '/note/blog-view',
                name: 'BlogView',
                meta: {
                    title: '文章详情',
                    anth: false
                },
                component: () => import('@/views/admin/admin-blog/blog-preview.vue'),
            },
            {
                path: '/note/blog-list',
                name: 'BlogList',
                meta: {
                    title: '文章列表',
                    anth: false
                },
                component: () => import('@/views/admin/admin-blog/blog-list.vue'),
            },
            {
                path: '/note/blog-edit',
                name: 'BlogEdit',
                meta: {
                    title: '编辑文章',
                    anth: false
                },
                component: () => import('@/views/admin/admin-blog/blog-edit.vue'),
            },
            {
                path: '/note/admin-user',
                name: 'adminUser',
                meta: {
                    title: '用户中心',
                    anth: false
                },
                component: () => import('@/views/admin/admin-user/admin-user.vue'),
            },
            {
                path: '/note/admin-task',
                name: 'adminTask',
                meta: {
                    title: '定时任务管理',
                    anth: false
                },
                component: () => import('@/views/admin/admin-task/admin-task.vue'),
            },
            {
                path: '/note/dev-task',
                name: 'devTask',
                meta: {
                    title: '开发任务管理',
                    anth: false
                },
                component: () => import('@/views/progress/progress-list/progress-list.vue'),
            },
            {
                path: '/note/admin-test',
                name: 'adminTest',
                meta: {
                    title: '功能测试专用',
                    anth: false
                },
                component: () => import('@/views/admin/admin-person/admin-person.vue'),
            },
            {
                path: '/note/admin-honor',
                name: 'adminHonor',
                meta: {
                    title: '荣誉墙',
                    anth: false
                },
                component: () => import('@/views/admin/admin-honor/admin-honor.vue'),
            },
            {
                path: '/note/admin-limit',
                name: 'adminLimit',
                meta: {
                    title: 'API 权限控制',
                    anth: false
                },
                component: () => import('@/views/admin/admin-api/admin-apiLimit.vue'),
            },
            {
                path: '/note/admin-visit',
                name: 'adminVisit',
                meta: {
                    title: 'API访问记录',
                    anth: false
                },
                component: () => import('@/views/admin/admin-api/admin-apiVisit.vue'),
            },
            {
                path: '/note/system-resources',
                name: 'systemResources',
                meta: {
                    title: '上传资源管理',
                    anth: false
                },
                component: () => import('@/views/admin/admin-resources/system-resources.vue'),
            },
            {
                path: '/note/system-email',
                name: 'systemEmail',
                meta: {
                    title: '邮件发送管理',
                    anth: false
                },
                component: () => import('@/views/admin/admin-resources/system-email.vue'),
            },
            {
                path: '/note/admin-setting',
                name: 'adminSetting',
                meta: {
                    title: '设置',
                    anth: false
                },
                component: () => import('@/views/admin/admin-setting/admin-setting.vue'),
            },
        ]
    }
]

export default adminList